home *** CD-ROM | disk | FTP | other *** search
/ Champak 106 / Vol 106.iso / games / maple_st.swf / scripts / frame_3 / DoAction_7.as < prev    next >
Encoding:
Text File  |  2010-04-12  |  1.5 KB  |  66 lines

  1. function tracexy()
  2. {
  3.    mappagename = "mappage" + _root._currentframe;
  4.    trace("ΦºÆΦë▓σ║ºµ¿Ö:_x=" + _root.player._x + "_y=" + _root.player._y + "σ£░σ£ûσ║ºµ¿Ö:_x=" + _root[mappagename]._x + "_y=" + _root[mappagename]._y);
  5. }
  6. function LVUP()
  7. {
  8.    if(_root.level <= 200)
  9.    {
  10.       _root.exps = _root.expmax;
  11.    }
  12.    else
  13.    {
  14.       _root.alertbox("Level MAXed!!");
  15.    }
  16. }
  17. function HEAL()
  18. {
  19.    _root.hp = _root.hpmax;
  20.    _root.mp = _root.mpmax;
  21. }
  22. function MONEY()
  23. {
  24.    _root.money = 9999999;
  25. }
  26. function getfps()
  27. {
  28.    this.createEmptyMovieClip("fpsshow",100000);
  29.    fpsshow._fps = 0;
  30.    fpsshow.oldtim = getTimer();
  31.    fpsshow.onEnterFrame = function()
  32.    {
  33.       fpsshow._fps = Math.round(1000 / (getTimer() - fpsshow.oldtim));
  34.       fpsshow.oldtim = getTimer();
  35.       fpsshown(fpsshow._fps);
  36.    };
  37. }
  38. function fpsshown(rfps)
  39. {
  40.    if(rfps <= 45)
  41.    {
  42.       fpstt = "ΘüïΣ╜£τïǵ│ü:Φë»σÑ╜";
  43.    }
  44.    else if(rfps <= 80)
  45.    {
  46.       fpstt = "ΘüïΣ╜£τïǵ│ü:τòÑτ│ƒ";
  47.    }
  48.    else if(rfps <= 100)
  49.    {
  50.       fpstt = "ΘüïΣ╜£τïǵ│ü:Θáùτ│ƒ";
  51.    }
  52.    else
  53.    {
  54.       fpstt = "ΘüïΣ╜£τïǵ│ü:µÑ╡σ╖«";
  55.    }
  56. }
  57. var my_cm = new ContextMenu();
  58. my_cm.hideBuiltInItems();
  59. my_cm.customItems.push(new ContextMenuItem("ΦºÆΦë▓σìçτ┤Ü",LVUP));
  60. my_cm.customItems.push(new ContextMenuItem("µ╗┐Θ¡öµ╗┐ΦíÇ",HEAL));
  61. my_cm.customItems.push(new ContextMenuItem("τÖ╛ΦɼΘçæΘîó",MONEY));
  62. my_cm.customItems.push(new ContextMenuItem("ΦºÆΦë▓σ║ºµ¿Ö",tracexy));
  63. my_cm.customItems.push(menuItem_cmi);
  64. _root.menu = my_cm;
  65. getfps();
  66.